const TokenKey = 'User-Token'
const UserIdKey = 'User-Id'
const UserNameKey = 'User-Name'

export function getToken() {
  return uni.getStorageSync(TokenKey)
}

export function setToken(token: string) {
  return uni.setStorageSync(TokenKey, token)
}

export function removeToken() {
  return uni.removeStorageSync(TokenKey)
}

export function getUserId() {
  return uni.getStorageSync(UserIdKey)
}

export function setUserId(userId: number) {
  return uni.setStorageSync(UserIdKey, userId)
}

export function removeUserId() {
  return uni.removeStorageSync(UserIdKey)
}

export function getUserName() {
  return uni.getStorageSync(UserNameKey)
}

export function setUserName(userName: string) {
  return uni.setStorageSync(UserNameKey, userName)
}

export function removeUserName() {
  return uni.removeStorageSync(UserNameKey)
}
